<?php
	use yii\helpers\Html;
?>

<?=Html::beginForm('','post',['id'=>'addForm','class'=>'form','date'=>1234]);?>

<?=Html::input('text','username','wfeng',['class'=>'username','id'=>'w']);?>
<hr>
<?=Html::textInput('name','',['class'=>'input text']);?>
<hr>
<?=Html::textarea('content','',['class'=>'content']);?>

<?=Html::radio('sta',false,['class'=>'sta']);?>
<hr>
<?=Html::radioList('sex',1,[0=>'male',1=>'female'],['class'=>'sex']);?>

<hr>
<?=Html::checkbox('hobby',false,['class'=>'hobby']);?>
<?=Html::checkboxList('hobby',1,[0=>'baseball',1=>'football'],['class'=>'hobby'])?>

<hr>
<?=Html::dropDownList('city',2,[2=>'请选择',0=>'上海',1=>'北京'],['class'=>'city']);?>

<hr>
<?=Html::fileInput('image',null,['class'=>'file'])?>

<hr>
<?=Html::button('普通按钮',['class'=>'btn']);?>
<?=Html::submitButton('提交按钮',['class'=>'submit']);?>
<?=Html::resetButton('重置按钮',['class'=>'reset']);?>


<?=Html::endForm();?>